package com.qyhl.party.party.supplement.department;

import com.qyhl.webtv.commonlib.entity.party.PartyZoneBean;

import java.util.List;

public class PartyDepartmentPresenter implements PartyDepartmentContract.PartyDepartmentPresenter {
    private PartyDepartmentContract.PartyDepartmentView mView;
    private PartyDepartmentModel mModel;

    public PartyDepartmentPresenter(PartyDepartmentContract.PartyDepartmentView mView) {
        this.mView = mView;
        this.mModel = new PartyDepartmentModel(this);
    }

    @Override
    public void getList(int level, String name) {
        mModel.getList(level, name);
    }

    @Override
    public void setList(List<PartyZoneBean> beanList) {
        mView.setList(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
